import { createApp } from "vue";
import App from "./App.vue";
import router from "./router/index.js";
import store from "./store/index.js";
import Elementplus from "element-plus";
import "element-plus/lib/theme-chalk/index.css";
import request from "../src/utils/request";
import storage from "../src/utils/storage";
import api from "../src/api";
console.log("环境变量", import.meta.env);
const app = createApp(App);

app.use(router).use(store).use(Elementplus, { size: "small" }).mount("#app");
app.config.globalProperties.$Request = request;
app.config.globalProperties.$api = api;
app.config.globalProperties.$Storage = storage;
app.config.globalProperties.http = () => {
  console.log("i am http");
};
